<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport"
        content="width=device-width, initial-scale=1">
<title>Film-Foma400</title>
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<!-- No Baidu Siteapp-->
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<!-- Add to homescreen for Chrome on Android -->	
<meta name="mobile-web-app-capable" content="yes">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="white">
<meta name="apple-mobile-web-app-title" content="Amaze UI"/>
<link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png">
<meta name="msapplication-TileColor" content="#0e90d2">
<link rel="stylesheet" type="text/css" href="css/style1.css" />
<style type="text/css">
html::-webkit-scrollbar {display:none}
</style>

<script src="js/modernizr-custom.js"></script>

	<!--[if IE]>
		<script src="http://libs.baidu.com/html5shiv/3.7/html5shiv.min.js"></script>
	<![endif]-->
</head>
<body class="demo-1">
<div class="container">
	<div class="content">
		<div class="grid">
			
			
			<div class="grid__item" data-size="1280x853"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000011637243377888.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000011637243377888.JPG" alt="img1" />
				<div class="description description--grid">Foma400</div>
				</a> </div>
			<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000021637243394004.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000021637243394004.JPG" alt="img2" />
				<div class="description description--grid">Foma400</div>
				</a> </div>
			<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000031637243453806.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000031637243453806.JPG" alt="img3" />
				<div class="description description--grid">Foma400</div>
				</a> </div>
			<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000051637243468294.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000051637243468294.JPG" alt="img4" />
				<div class="description description--grid">Foma400</div>
				</a> </div>
			
			<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000041637243536016.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000041637243536016.JPG" alt="img5" />
				<div class="description description--grid">Foma400</div>
				</a> </div>
			<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000061637243559480.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000061637243559480.JPG" alt="img6" />
				<div class="description description--grid">Foma400</div>
				</a> </div>

			<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000081637243593363.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000081637243593363.JPG" alt="img7" />
					<div class="description description--grid">Foma400</div>
					</a> </div>
			<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000101637243761251.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000101637243761251.JPG" alt="img8" />
					<div class="description description--grid">Foma400</div>
					</a> </div>
			<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000151637243997832.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000151637243997832.JPG" alt="img9" />
					<div class="description description--grid">Foma400</div>
					</a> </div>
				
			<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000171637243997710.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000171637243997710.JPG" alt="img10" />
					<div class="description description--grid">Foma400</div>
					</a> </div>
			<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000201637243997748.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000201637243997748.JPG" alt="img11" />
					<div class="description description--grid">Foma400</div>
					</a> </div>
			<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000211637243997812.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000211637243997812.JPG" alt="img12" />
						<div class="description description--grid">Foma400</div>
						</a> </div>
					<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000221637243997716.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000221637243997716.JPG" alt="img13" />
						<div class="description description--grid">Foma400</div>
						</a> </div>
					<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000231637243997807.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000231637243997807.JPG" alt="img14" />
						<div class="description description--grid">Foma400</div>
						</a> </div>
					
					<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000251637243997610.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000251637243997610.JPG" alt="img15" />
						<div class="description description--grid">Foma400</div>
						</a> </div>
					<div class="grid__item" data-size="1280x850"> <a href="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000261637243997799.JPG" class="img-wrap"><img src="https://baklibcdn2.dagle.cn/t/80c13873-5fca-405d-938e-33e75a299f6c/u/20ddcf34-1454-4b5e-8e13-a813f0bae50c/foma400-raw-000261637243997799.JPG" alt="img16" />
						<div class="description description--grid">Foma400</div>
						</a> </div>



		</div>
		<!-- /grid -->
		<div class="preview">
			<button class="action action--close"><i class="fa fa-times">x</i><span class="text-hidden">Close</span></button>
			<div class="description description--preview"></div>
		</div>
		<!-- /preview -->
	</div>
</div>
<!-- /container -->
	<script src="js/imagesloaded.pkgd.min.js"></script>
	<script src="js/masonry.pkgd.min.js"></script>
	<script src="js/classie.js"></script>
	<script src="js/main.js"></script>
	<script>
		(function() {
			// create SVG circle overlay and append it to the preview element
			function createCircleOverlay(previewEl) {
				var dummy = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
				dummy.setAttributeNS(null, 'version', '1.1');
				dummy.setAttributeNS(null, 'width', '100%');
				dummy.setAttributeNS(null, 'height', '100%');
				dummy.setAttributeNS(null, 'class', 'overlay');
				var g = document.createElementNS('http://www.w3.org/2000/svg', 'g');
				var circle = document.createElementNS("http://www.w3.org/2000/svg", "circle");
				circle.setAttributeNS(null, 'cx', 0);
				circle.setAttributeNS(null, 'cy', 0);
				circle.setAttributeNS(null, 'r', Math.sqrt(Math.pow(previewEl.offsetWidth,2) + Math.pow(previewEl.offsetHeight,2)));
				dummy.appendChild(g);
				g.appendChild(circle);
				previewEl.appendChild(dummy);
			}
			
			new GridFx(document.querySelector('.grid'), {
				onInit : function(instance) {
					createCircleOverlay(instance.previewEl);
				},
				onResize : function(instance) {
					instance.previewEl.querySelector('svg circle').setAttributeNS(null, 'r', Math.sqrt(Math.pow(instance.previewEl.offsetWidth,2) + Math.pow(instance.previewEl.offsetHeight,2)));
				},
				onOpenItem : function(instance, item) {
					// item's image
					var gridImg = item.querySelector('img'),
						gridImgOffset = gridImg.getBoundingClientRect(),
						win = {width: document.documentElement.clientWidth, height: window.innerHeight},
						SVGCircleGroupEl = instance.previewEl.querySelector('svg > g'),
						SVGCircleEl = SVGCircleGroupEl.querySelector('circle');
						
					SVGCircleEl.setAttributeNS(null, 'r', Math.sqrt(Math.pow(instance.previewEl.offsetWidth,2) + Math.pow(instance.previewEl.offsetHeight,2)));
					// set the transform for the SVG g node. This will animate the circle overlay. The origin of the circle depends on the position of the clicked item.
					if( gridImgOffset.left + gridImg.offsetWidth/2 < win.width/2 ) {
						SVGCircleGroupEl.setAttributeNS(null, 'transform', 'translate(' + win.width + ', ' + (gridImgOffset.top + gridImg.offsetHeight/2 < win.height/2 ? win.height : 0) + ')');
					}
					else {
						SVGCircleGroupEl.setAttributeNS(null, 'transform', 'translate(0, ' + (gridImgOffset.top + gridImg.offsetHeight/2 < win.height/2 ? win.height : 0) + ')');
					}
				}
			});
		})();
	</script>
</body>
</html>
